//S=(n!+1)/((n+1)!)
#include<stdio.h>
#include<conio.h>
#include<math.h>
int gthua(int);
int main(){
	int n;
	printf("nhap n");
	scanf("%d",&n);
	float x = (float)(gthua(n) + 1)/ (gthua(n+1));
	printf("%0.2f",x);
	getch();
	
}
int gthua(int n){
	if(n== 0 || n == 1) return 1;
	else{
		int gt = 1;
		for(int i = 1; i<= n ; i++){
			gt = gt*i;
		}
		return gt;
	}
	
}

